#ifndef _PACNIC_H_
#define _PACNIC_H_

#define panic(str) {						\
	  printk("PANIC %s:%d %s\n", __FILE__, __LINE__, str);	\
	  while(1) asm volatile("cli;hlt;":::);			\
     }

#define assert(value) {				\
	  if (!(value)) {				\
	       panic("assertion: "#value" failed!");	\
	  }						\
     }

#endif
